import React from 'react';
class App extends React.Component {
  render() {
    // console.log(this.props)
    let obj = {};
    this.props.location.search.replace(/([^?=&]+)=([^?=&]+)/g, (a, b, c) => {
      obj[b] = c
    })
    // console.log(obj)
    // 凡是通过 Route渲染出来的组件  都会有 router相关的参数
    return <div className=''>
      HOME
        </div>;
  }
}
export default App